#ifndef QTEXTEDITWIDGET_H
#define QTEXTEDITWIDGET_H

#include <QLineEdit>
#include <QUndoStack>

class QAbstractProperty;


class QTextEditWidget : public QLineEdit
{
    Q_OBJECT
public:
    explicit QTextEditWidget(QAbstractProperty* property,QUndoStack* stack,QWidget *parent = 0);
    
protected:
    void    focusOutEvent(QFocusEvent *);

    void    keyPressEvent(QKeyEvent *);
signals:
    
public slots:
protected:
    QAbstractProperty   *m_property;
    QUndoStack*         m_undo_stack;
};

#endif // QTEXTEDITWIDGET_H
